
#pragma once
#include "DBManager/Common/ServiceMacro.h"
#include "DBManager/IRepository/Result/Random/ICROSS_PSDRepository.h"
#include "DBManager/IService/Result/Random/ICROSS_PSDService.h"

SG_DBMANAGER_NAMESPACE_OPEN

class DBManager_DECLSPEC CROSS_PSDService : ICROSS_PSDService
{
    using DataType = SG::DataStructure::Post::CROSS_PSDData;
    using IRepos   = ICROSS_PSDRepository;

  public:
    explicit CROSS_PSDService (DBServiceFactory* const dbServiceFactory, IRepos& repos);

    ~CROSS_PSDService () override;

    FUNCTION_POST_DEFAULT (DataType)

  private:
    DBServiceFactory* const m_dbServiceFactory;
    IRepos&                 m_repository;  ///< 数据仓库
};

SG_DBMANAGER_NAMESPACE_CLOSE
